﻿using System;
using System.Collections;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {



            Hashtable hashtable = new Hashtable();

            hashtable.Add(1, "飞屋环球记");
            hashtable.Add(2, "巴黎圣母院");
            foreach(DictionaryEntry entry in hashtable)
            {
                int key = (int)entry.Key;
                string value = entry.Value.ToString();
                Console.WriteLine("图书编号：{0}，图书名称：{1}", key, value);
            }


        }
    }
}
